@(url: String, s: Target, id:String)

<h2>Show results:</h2>
<div class="alert alert-success">
    @url
</div>

<div class="row-fluid">
		
@for(target <- Target.values()){
	@if(target != s){
		<div class="span6 well">
			<h2>@target.toString()</h2>
			<hr>
			<div id="@target.toString()"></div>
		</div>		  
	}
}
</div>

<script type="text/javascript">
<!--
$(document).ready(function(){
	$.get("/loadInstance", {id: "@id", source : "@s.toString()"},
		function(data) {
		//start
		if('@id' == data){
			@for(target <- Target.values()){
				@if(target != s){
					$.get("/ai", {id: "@id", source : "@s.toString()", target : "@target.toString()"},
					function(data) {
						$('#@target.toString()').html(data);
					    $('a').tooltip();
					});
				}
			}
		}
		//end
		});
});
//-->
</script>